/*
*
* Author: jff
*
* Date:
*
* Function:
*
*/
import VueRouter from 'vue-router'
import HomeContainer from './components/tabbar/HomeContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import ShopCarContainer from './components/tabbar/ShopCarContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import NewsList from './components/newsList/NewsList.vue'
import NewsInfo from './components/newsList/newsInfo.vue'
import PhotoList from './components/photosList/PhototList.vue'
import PhotoInfo from './components/photosList/PhotoInfo.vue'
import GoodsList from './components/goods/GoodsList.vue'
import GoodsInfo from './components/goods/GoodsInfo.vue'
import GoodsComment from './components/goods/GoodsComment.vue'
import GoodsDesc from './components/goods/GoodsDesc.vue'

var routerObj = new VueRouter({
    routes:[
        {path:'/', redirect:"/home"},
        {path:'/home', component:HomeContainer},
        {path:'/member', component:MemberContainer},
        {path:'/shopCar', component:ShopCarContainer},
        {path:'/search', component:SearchContainer},
        {path:'/home/newslist', component:NewsList},
        {path:'/home/newsinfo/:id', component:NewsInfo},
        {path:"/home/photolist", component:PhotoList},
        {path:"/home/photoinfo/:id", component:PhotoInfo},
        {path:"/home/goodslist", component:GoodsList},
        {path:"/home/goodsInfo/:id", component: GoodsInfo, name: "GoodInfo"},
        {path:"/home/GoodsComment/:id", component: GoodsComment, name: "GoodsComment"},
        {path:"/home/GoodsDesc/:id", component: GoodsDesc, name: "GoodsDesc"}
    ],
    /// 定义选中的样式
    linkActiveClass:'mui-active'
})

export  default  routerObj
